how to use object inside the object